
#日期
import datetime
from datetime import *
if __name__=="__main__":
    str="2025-7-33"
    d=datetime.now()#今天
    print(d)
    print(d.year)
    print(d.month)
    print("小时：",d.hour)
    print(d.weekday())
    print(type(d))
    print(d.isoformat())#iso日期格式
    print(d.utcnow())
    print("**"*20)
    d2=datetime.date(d)
    print(d2)
    d3=datetime.time(d)
    print(d3)